package ch7;

public class Thread2Test {

	public static void main(String[] args) {
		// for (int i = 1; i <= 5; i++) {
		// MyThread2 m = new MyThread2();
		//
		// Thread th = new Thread(m, "线程" + i);
		// th.start();
		// }
		MyThread2 m = new MyThread2();
		for (int i = 1; i <= 5; i++) {
			Thread th = new Thread(m, "线程" + i);
			th.start();
		}
	}

}
